package com.quyunshuo.module.home.activity.report

import com.quyunshuo.edwingoal.base.mvvm.m.BaseRepository
import com.quyunshuo.edwingoal.network.HomeApiService
import com.quyunshuo.module.home.room.database.SumDataBase
import com.quyunshuo.module.home.room.entity.Steps
import kotlinx.coroutines.flow.Flow
import javax.inject.Inject

/**
 * 首页M层
 *
 * @author Qu Yunshuo
 * @since 5/25/21 5:42 PM
 */
class ReportRepository @Inject constructor() : BaseRepository() {
    @Inject
    lateinit var mApi: HomeApiService

    private val musicDao by lazy {
        SumDataBase.getInstance().stepsDao()
    }

    fun queryAll(): Flow<List<Steps>> {
        return musicDao.queryAll()
    }



}